.class public Lde/dealdoktor/app/views/ScrollableTabActivity;
.super Landroid/app/ActivityGroup;
.source "ScrollableTabActivity.java"

# interfaces
.implements Landroid/widget/RadioGroup$OnCheckedChangeListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lde/dealdoktor/app/views/ScrollableTabActivity$ChangeTabBroadcastReceiver;,
        Lde/dealdoktor/app/views/ScrollableTabActivity$SliderBarActivityDelegate;
    }
.end annotation


# static fields
.field public static ACTION_CHANGE_TAB:Ljava/lang/String;

.field public static CURRENT_TAB_INDEX:Ljava/lang/String;


# instance fields
.field private activityManager:Landroid/app/LocalActivityManager;

.field private bottomRadioGroup:Landroid/widget/RadioGroup;

.field private buttonLayoutParams:Landroid/widget/RadioGroup$LayoutParams;

.field private changeTabBroadcastReceiver:Lde/dealdoktor/app/views/ScrollableTabActivity$ChangeTabBroadcastReceiver;

.field private changeTabIntentFilter:Landroid/content/IntentFilter;

.field private contentViewLayout:Landroid/widget/LinearLayout;

.field private contentViewLayoutParams:Landroid/widget/LinearLayout$LayoutParams;

.field private defaultOffShade:I

.field private defaultOnShade:I

.field private delegate:Lde/dealdoktor/app/views/ScrollableTabActivity$SliderBarActivityDelegate;

.field private intentList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/content/Intent;",
            ">;"
        }
    .end annotation
.end field

.field private states:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<[I>;"
        }
    .end annotation
.end field

.field private titleList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 42
    const-string v0, "com.mobyfactory.changeTab"

    sput-object v0, Lde/dealdoktor/app/views/ScrollableTabActivity;->ACTION_CHANGE_TAB:Ljava/lang/String;

    .line 25
    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 25
    invoke-direct {p0}, Landroid/app/ActivityGroup;-><init>()V

    return-void
.end method

.method private getTabButtonLayoutParams(II)V
    .locals 3
    .parameter "width"
    .parameter "i"

    .prologue
    const/4 v2, -0x2

    .line 130
    new-instance v0, Landroid/widget/RadioGroup$LayoutParams;

    invoke-direct {v0, p1, v2}, Landroid/widget/RadioGroup$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->buttonLayoutParams:Landroid/widget/RadioGroup$LayoutParams;

    .line 131
    if-nez p2, :cond_1

    .line 132
    new-instance v0, Landroid/widget/RadioGroup$LayoutParams;

    add-int/lit8 v1, p1, -0x14

    invoke-direct {v0, v1, v2}, Landroid/widget/RadioGroup$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->buttonLayoutParams:Landroid/widget/RadioGroup$LayoutParams;

    .line 138
    :cond_0
    :goto_0
    return-void

    .line 133
    :cond_1
    const/4 v0, 0x1

    if-ne p2, v0, :cond_2

    .line 134
    new-instance v0, Landroid/widget/RadioGroup$LayoutParams;

    add-int/lit8 v1, p1, 0x14

    invoke-direct {v0, v1, v2}, Landroid/widget/RadioGroup$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->buttonLayoutParams:Landroid/widget/RadioGroup$LayoutParams;

    goto :goto_0

    .line 135
    :cond_2
    const/4 v0, 0x2

    if-ne p2, v0, :cond_0

    .line 136
    new-instance v0, Landroid/widget/RadioGroup$LayoutParams;

    add-int/lit8 v1, p1, 0x14

    invoke-direct {v0, v1, v2}, Landroid/widget/RadioGroup$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->buttonLayoutParams:Landroid/widget/RadioGroup$LayoutParams;

    goto :goto_0
.end method


# virtual methods
.method protected addTab(Ljava/lang/String;IIILandroid/content/Intent;)V
    .locals 2
    .parameter "title"
    .parameter "iconStateId"
    .parameter "offShade"
    .parameter "onShade"
    .parameter "intent"

    .prologue
    .line 228
    const/4 v1, 0x3

    new-array v0, v1, [I

    const/4 v1, 0x0

    aput p2, v0, v1

    const/4 v1, 0x1

    aput p3, v0, v1

    const/4 v1, 0x2

    aput p4, v0, v1

    .line 229
    .local v0, iconStates:[I
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->states:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 230
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->intentList:Ljava/util/List;

    invoke-interface {v1, p5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 231
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->titleList:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 233
    return-void
.end method

.method protected addTab(Ljava/lang/String;IILandroid/content/Intent;)V
    .locals 2
    .parameter "title"
    .parameter "offIconStateId"
    .parameter "onIconStateId"
    .parameter "intent"

    .prologue
    .line 174
    const/4 v1, 0x2

    new-array v0, v1, [I

    const/4 v1, 0x0

    aput p3, v0, v1

    const/4 v1, 0x1

    aput p2, v0, v1

    .line 175
    .local v0, iconStates:[I
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->states:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 176
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->intentList:Ljava/util/List;

    invoke-interface {v1, p4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 177
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->titleList:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 178
    return-void
.end method

.method protected addTab(Ljava/lang/String;ILandroid/content/Intent;)V
    .locals 3
    .parameter "title"
    .parameter "iconStateId"
    .parameter "intent"

    .prologue
    .line 197
    const/4 v1, 0x3

    new-array v0, v1, [I

    const/4 v1, 0x0

    aput p2, v0, v1

    const/4 v1, 0x1

    iget v2, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->defaultOffShade:I

    aput v2, v0, v1

    const/4 v1, 0x2

    iget v2, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->defaultOnShade:I

    aput v2, v0, v1

    .line 198
    .local v0, iconStates:[I
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->states:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 199
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->intentList:Ljava/util/List;

    invoke-interface {v1, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 200
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->titleList:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 201
    return-void
.end method

.method public commit()V
    .locals 14

    .prologue
    .line 76
    const-string v10, "xxxxxxx"

    const-string v11, "in commit"

    invoke-static {v10, v11}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 77
    const/4 v4, 0x5

    .line 79
    .local v4, optimum_visible_items_in_portrait_mode:I
    :try_start_0
    invoke-virtual {p0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v8

    .line 80
    .local v8, window:Landroid/view/WindowManager;
    invoke-interface {v8}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    .line 81
    .local v0, display:Landroid/view/Display;
    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v9

    .line 83
    .local v9, window_width:I
    int-to-double v10, v9

    const-wide/high16 v12, 0x4050

    div-double/2addr v10, v12

    double-to-int v4, v10

    .line 88
    .end local v0           #display:Landroid/view/Display;
    .end local v8           #window:Landroid/view/WindowManager;
    .end local v9           #window_width:I
    :goto_0
    invoke-virtual {p0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v10

    invoke-interface {v10}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v10

    invoke-virtual {v10}, Landroid/view/Display;->getWidth()I

    move-result v5

    .line 91
    .local v5, screen_width:I
    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->intentList:Ljava/util/List;

    invoke-interface {v10}, Ljava/util/List;->size()I

    move-result v10

    if-gt v10, v4, :cond_2

    .line 92
    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->intentList:Ljava/util/List;

    invoke-interface {v10}, Ljava/util/List;->size()I

    move-result v10

    div-int v7, v5, v10

    .line 98
    .local v7, width:I
    :goto_1
    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->bottomRadioGroup:Landroid/widget/RadioGroup;

    invoke-virtual {v10}, Landroid/widget/RadioGroup;->getChildCount()I

    move-result v10

    if-eqz v10, :cond_0

    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->bottomRadioGroup:Landroid/widget/RadioGroup;

    invoke-virtual {v10}, Landroid/widget/RadioGroup;->getChildCount()I

    move-result v10

    const/4 v11, 0x5

    if-eq v10, v11, :cond_6

    .line 99
    :cond_0
    const/4 v2, 0x0

    .local v2, i:I
    :goto_2
    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->intentList:Ljava/util/List;

    invoke-interface {v10}, Ljava/util/List;->size()I

    move-result v10

    if-lt v2, v10, :cond_3

    .line 126
    :cond_1
    return-void

    .line 84
    .end local v2           #i:I
    .end local v5           #screen_width:I
    .end local v7           #width:I
    :catch_0
    move-exception v1

    .line 85
    .local v1, e:Ljava/lang/Exception;
    const/4 v4, 0x5

    goto :goto_0

    .line 94
    .end local v1           #e:Ljava/lang/Exception;
    .restart local v5       #screen_width:I
    :cond_2
    const/16 v7, 0x40

    .restart local v7       #width:I
    goto :goto_1

    .line 100
    .restart local v2       #i:I
    :cond_3
    new-instance v6, Lde/dealdoktor/app/views/TabBarButton;

    invoke-direct {v6, p0}, Lde/dealdoktor/app/views/TabBarButton;-><init>(Landroid/content/Context;)V

    .line 101
    .local v6, tabButton:Lde/dealdoktor/app/views/TabBarButton;
    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->states:Ljava/util/List;

    invoke-interface {v10, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, [I

    .line 102
    .local v3, iconStates:[I
    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->titleList:Ljava/util/List;

    invoke-interface {v10, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/String;

    invoke-virtual {v10}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v10

    const/4 v11, 0x0

    aget v11, v3, v11

    invoke-virtual {v6, v10, v11}, Lde/dealdoktor/app/views/TabBarButton;->setState(Ljava/lang/String;I)V

    .line 103
    invoke-virtual {v6, v2}, Lde/dealdoktor/app/views/TabBarButton;->setId(I)V

    .line 104
    const/16 v10, 0x11

    invoke-virtual {v6, v10}, Lde/dealdoktor/app/views/TabBarButton;->setGravity(I)V

    .line 107
    invoke-direct {p0, v7, v2}, Lde/dealdoktor/app/views/ScrollableTabActivity;->getTabButtonLayoutParams(II)V

    .line 111
    invoke-virtual {p0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->getCurrentTab()I

    move-result v10

    if-eq v10, v2, :cond_4

    invoke-virtual {p0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->getCurrentTab()I

    move-result v10

    if-gez v10, :cond_5

    if-nez v2, :cond_5

    .line 112
    :cond_4
    invoke-virtual {v6}, Lde/dealdoktor/app/views/TabBarButton;->toggle()V

    .line 114
    :cond_5
    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->bottomRadioGroup:Landroid/widget/RadioGroup;

    iget-object v11, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->buttonLayoutParams:Landroid/widget/RadioGroup$LayoutParams;

    invoke-virtual {v10, v6, v2, v11}, Landroid/widget/RadioGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 99
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    .line 117
    .end local v2           #i:I
    .end local v3           #iconStates:[I
    .end local v6           #tabButton:Lde/dealdoktor/app/views/TabBarButton;
    :cond_6
    const/4 v2, 0x0

    .restart local v2       #i:I
    :goto_3
    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->intentList:Ljava/util/List;

    invoke-interface {v10}, Ljava/util/List;->size()I

    move-result v10

    if-ge v2, v10, :cond_1

    .line 118
    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->bottomRadioGroup:Landroid/widget/RadioGroup;

    invoke-virtual {v10, v2}, Landroid/widget/RadioGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Lde/dealdoktor/app/views/TabBarButton;

    .line 121
    .restart local v6       #tabButton:Lde/dealdoktor/app/views/TabBarButton;
    invoke-direct {p0, v7, v2}, Lde/dealdoktor/app/views/ScrollableTabActivity;->getTabButtonLayoutParams(II)V

    .line 123
    iget-object v10, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->buttonLayoutParams:Landroid/widget/RadioGroup$LayoutParams;

    invoke-virtual {v6, v10}, Lde/dealdoktor/app/views/TabBarButton;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 117
    add-int/lit8 v2, v2, 0x1

    goto :goto_3
.end method

.method public getCurrentTab()I
    .locals 1

    .prologue
    .line 292
    iget-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->bottomRadioGroup:Landroid/widget/RadioGroup;

    invoke-virtual {v0}, Landroid/widget/RadioGroup;->getCheckedRadioButtonId()I

    move-result v0

    return v0
.end method

.method public onCheckedChanged(Landroid/widget/RadioGroup;I)V
    .locals 2
    .parameter "group"
    .parameter "checkedId"

    .prologue
    .line 260
    :try_start_0
    iget-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->delegate:Lde/dealdoktor/app/views/ScrollableTabActivity$SliderBarActivityDelegate;

    if-eqz v0, :cond_0

    .line 261
    iget-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->delegate:Lde/dealdoktor/app/views/ScrollableTabActivity$SliderBarActivityDelegate;

    invoke-virtual {v0, p2}, Lde/dealdoktor/app/views/ScrollableTabActivity$SliderBarActivityDelegate;->onTabChanged(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 265
    :cond_0
    :goto_0
    iget-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->titleList:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->intentList:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/Intent;

    invoke-virtual {p0, v1, v0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->startGroupActivity(Ljava/lang/String;Landroid/content/Intent;)V

    .line 266
    return-void

    .line 262
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 3
    .parameter "newConfig"

    .prologue
    .line 145
    const v1, 0x7f0b000b

    invoke-virtual {p0, v1}, Lde/dealdoktor/app/views/ScrollableTabActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 146
    .local v0, headerLayout:Landroid/widget/LinearLayout;
    iget v1, p1, Landroid/content/res/Configuration;->orientation:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_0

    .line 147
    const v1, 0x7f020011

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 151
    :goto_0
    invoke-virtual {p0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->commit()V

    .line 152
    invoke-super {p0, p1}, Landroid/app/ActivityGroup;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 153
    return-void

    .line 149
    :cond_0
    const v1, 0x7f02000d

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    goto :goto_0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 3
    .parameter "savedInstanceState"

    .prologue
    const/4 v1, -0x1

    .line 46
    invoke-super {p0, p1}, Landroid/app/ActivityGroup;->onCreate(Landroid/os/Bundle;)V

    .line 48
    invoke-virtual {p0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->getLocalActivityManager()Landroid/app/LocalActivityManager;

    move-result-object v0

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->activityManager:Landroid/app/LocalActivityManager;

    .line 49
    const v0, 0x7f030009

    invoke-virtual {p0, v0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->setContentView(I)V

    .line 50
    const v0, 0x7f0b000d

    invoke-virtual {p0, v0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->contentViewLayout:Landroid/widget/LinearLayout;

    .line 52
    const v0, 0x7f0b000c

    invoke-virtual {p0, v0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RadioGroup;

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->bottomRadioGroup:Landroid/widget/RadioGroup;

    .line 53
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v1, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->contentViewLayoutParams:Landroid/widget/LinearLayout$LayoutParams;

    .line 55
    iget-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->bottomRadioGroup:Landroid/widget/RadioGroup;

    invoke-virtual {v0, p0}, Landroid/widget/RadioGroup;->setOnCheckedChangeListener(Landroid/widget/RadioGroup$OnCheckedChangeListener;)V

    .line 56
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->intentList:Ljava/util/List;

    .line 57
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->titleList:Ljava/util/List;

    .line 58
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->states:Ljava/util/List;

    .line 60
    new-instance v0, Landroid/widget/RadioGroup$LayoutParams;

    const/16 v1, 0x40

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/widget/RadioGroup$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->buttonLayoutParams:Landroid/widget/RadioGroup$LayoutParams;

    .line 61
    return-void
.end method

.method public onPause()V
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->changeTabBroadcastReceiver:Lde/dealdoktor/app/views/ScrollableTabActivity$ChangeTabBroadcastReceiver;

    invoke-virtual {p0, v0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 72
    invoke-super {p0}, Landroid/app/ActivityGroup;->onPause()V

    .line 73
    return-void
.end method

.method public onResume()V
    .locals 2

    .prologue
    .line 64
    new-instance v0, Landroid/content/IntentFilter;

    sget-object v1, Lde/dealdoktor/app/views/ScrollableTabActivity;->ACTION_CHANGE_TAB:Ljava/lang/String;

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->changeTabIntentFilter:Landroid/content/IntentFilter;

    .line 65
    new-instance v0, Lde/dealdoktor/app/views/ScrollableTabActivity$ChangeTabBroadcastReceiver;

    invoke-direct {v0, p0}, Lde/dealdoktor/app/views/ScrollableTabActivity$ChangeTabBroadcastReceiver;-><init>(Lde/dealdoktor/app/views/ScrollableTabActivity;)V

    iput-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->changeTabBroadcastReceiver:Lde/dealdoktor/app/views/ScrollableTabActivity$ChangeTabBroadcastReceiver;

    .line 66
    iget-object v0, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->changeTabBroadcastReceiver:Lde/dealdoktor/app/views/ScrollableTabActivity$ChangeTabBroadcastReceiver;

    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->changeTabIntentFilter:Landroid/content/IntentFilter;

    invoke-virtual {p0, v0, v1}, Lde/dealdoktor/app/views/ScrollableTabActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 67
    invoke-super {p0}, Landroid/app/ActivityGroup;->onResume()V

    .line 68
    return-void
.end method

.method public onSearchRequested()Z
    .locals 1

    .prologue
    .line 317
    invoke-super {p0}, Landroid/app/ActivityGroup;->onSearchRequested()Z

    move-result v0

    return v0
.end method

.method public setCurrentTab(I)V
    .locals 3
    .parameter "index"

    .prologue
    .line 281
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->titleList:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->intentList:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/content/Intent;

    invoke-virtual {p0, v2, v1}, Lde/dealdoktor/app/views/ScrollableTabActivity;->startGroupActivity(Ljava/lang/String;Landroid/content/Intent;)V

    .line 283
    :try_start_0
    iget-object v1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->bottomRadioGroup:Landroid/widget/RadioGroup;

    invoke-virtual {v1, p1}, Landroid/widget/RadioGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lde/dealdoktor/app/views/TabBarButton;

    .line 284
    .local v0, button:Lde/dealdoktor/app/views/TabBarButton;
    invoke-virtual {v0}, Lde/dealdoktor/app/views/TabBarButton;->isChecked()Z

    move-result v1

    if-nez v1, :cond_0

    .line 285
    invoke-virtual {v0}, Lde/dealdoktor/app/views/TabBarButton;->toggle()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 289
    .end local v0           #button:Lde/dealdoktor/app/views/TabBarButton;
    :cond_0
    :goto_0
    return-void

    .line 287
    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method protected setDefaultShade(II)V
    .locals 0
    .parameter "offShade"
    .parameter "onShade"

    .prologue
    .line 254
    iput p1, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->defaultOffShade:I

    .line 255
    iput p2, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->defaultOnShade:I

    .line 256
    return-void
.end method

.method public startGroupActivity(Ljava/lang/String;Landroid/content/Intent;)V
    .locals 5
    .parameter "id"
    .parameter "intent"

    .prologue
    .line 269
    iget-object v3, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->contentViewLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v3}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 271
    iget-object v3, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->activityManager:Landroid/app/LocalActivityManager;

    invoke-virtual {v3, p1, p2}, Landroid/app/LocalActivityManager;->startActivity(Ljava/lang/String;Landroid/content/Intent;)Landroid/view/Window;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v2

    .line 273
    .local v2, view:Landroid/view/View;
    invoke-virtual {p0}, Lde/dealdoktor/app/views/ScrollableTabActivity;->getLocalActivityManager()Landroid/app/LocalActivityManager;

    move-result-object v1

    .line 274
    .local v1, activityManager:Landroid/app/LocalActivityManager;
    invoke-virtual {v1}, Landroid/app/LocalActivityManager;->getCurrentActivity()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lde/dealdoktor/app/activities/TabGroupActivity;

    .line 275
    .local v0, a:Lde/dealdoktor/app/activities/TabGroupActivity;
    invoke-virtual {v0}, Lde/dealdoktor/app/activities/TabGroupActivity;->closeChilds()V

    .line 277
    iget-object v3, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->contentViewLayout:Landroid/widget/LinearLayout;

    iget-object v4, p0, Lde/dealdoktor/app/views/ScrollableTabActivity;->contentViewLayoutParams:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {v3, v2, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 278
    return-void
.end method
